package com.example.demo.mapper;

import com.example.demo.entity.SecuritiesNews;

import com.example.demo.vo.SecuritiesNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SecuritiesNewsMapper {

    int insertSecuritiesNews(@Param("securitiesNews") SecuritiesNews securitiesNews);

    boolean deleteSecuritiesNews(@Param("id") String id);

    int updateSecuritiesNews(@Param("securitiesNews") SecuritiesNews securitiesNews);


    List<SecuritiesNewsVo> selectSecuritiesNewsList();

    boolean selectById(@Param("id") String id);


}